<?php

include("src/DataManager.php");

$dbManager = new DataManager();

if(!$dbManager->verifConnectDB())
{
	echo "Pb connnexion DB !!";
}
else {
	$nom = $_POST['nom'];
	$adresse = $_POST['adresse'];
	$codePostal = $_POST['codePostal'];
	$ville = $_POST['ville'];
	
	$res=$dbManager->insertResto($nom, $adresse, $codePostal, $ville);
	echo "res=$res";
	
}

?>